_payload = _this select 0;
_arry = _this select 1;

private ["_plane","_callsign","_home","_airport","_egress","_ingress","_class","_spwn"];

if(RUM_FXD_NonSpawn)then{
	_plane = _arry select 0;
}else{
	_plane = _arry select (count _arry - 1);
};
_callsign = _arry select 1;

removeAllweapons _plane;

if("cas" in _array)then{_plane call RUM_FXD_weaponLoad};

_mkrname = format ["%1station",_plane];
_asloc = createMarker [_mkrname, getPos _plane];
_asloc setMarkerShape "ELLIPSE";
_mkrname setMarkerBrush "BORDER";
_mkrname setMarkerSize [1200,1200];
_mkrname setMarkerColor "ColorGreen";
_mkrname setMarkerText _callsign;
_mkrname2 = format ["%1station2",_plane];
_asloc2 = createMarker [_mkrname2, getmarkerpos _mkrname];
_asloc2 setMarkerShape "ICON";
_mkrname2 setMarkerSize [1,1];
_mkrname2 setMarkerType "Dot";
_mkrname2 setMarkerColor "ColorGreen";
_mkrname2 setMarkerText _callsign;

_pilot = driver _plane;
_plane flyInheight RUM_FXD_flyHeight;
_grp = group _pilot;

fwp2=_grp addWaypoint [getmarkerpos _mkrname, 0];
fwp2 setWaypointType "MOVE";
fwp2 setWaypointSpeed "NORMAL";
fwp2 setWaypointBehaviour "CARELESS";
fwp2 setWaypointCombatMode "BLUE";
fwp2 setWaypointCompletionRadius 50;

//hint format ["%1",_this];

sleep 3;

if(RUM_FXD_flightCheckIn)then{["flightcheckin",[player,_pilot,_callsign,_payload]] execVM (RUM_PATH+"Fxd\radiodialogs.sqf");};

//hint format ["%1",RUM_FXDAircraft_onStation];

if(true)exitwith{};
